package org.linlinjava.litemall.wx.service;

import org.linlinjava.litemall.db.domain.LitemallMessage;
import org.linlinjava.litemall.db.domain.LitemallChatSession;
import java.util.List;

public interface WxMessageService {
    int sendMessage(LitemallMessage message);
    List<LitemallMessage> getMessageList(String userId, String partnerId, Integer page, Integer size,Integer productId);
    List<LitemallChatSession> getChatList(String userId);
    int markMessageRead(String userId, String partnerId);
    int getUnreadCount(String userId, String partnerId);
    void createChat(LitemallChatSession chatSession, LitemallMessage message);
}